package com.lxj.fast_android_demo.meap_builder;

import android.graphics.Color;

import com.lxj.fast_android_demo.dto.Dataset;

public class Shell {
   
	/**
	 * 获取tableRow的行高
	 * 
	 * @author LiangXiangJu
	 * @creationTime 2014-7-4 下午4:17:58
	 * @version
	 * @param dataset
	 * @param position
	 * @return
	 */
   public static int parseTableRowHeight(Dataset dataset,int position){
	   dataset.goToIndex_(position);
	   if("颜舒波".equals(dataset.getValue("empName"))){
		   return 300;
	   }
	   return -2;
   }
   
   /**
    * 设置姓名列字体颜色
    * 
    * @author LiangXiangJu
    * @creationTime 2014-7-4 下午4:18:46
    * @version
    * @param dataset
    * @param position
    * @return
    */
   public static int parseNameColor(Dataset dataset,int position){
	   dataset.goToIndex_(position);
	   if("0".equals(dataset.getValue("empGener"))){
		   return Color.BLACK;
	   }
	   return Color.RED;
   }
   
}
